package com.wr.controller;

import com.wr.model.Plate;
import com.wr.model.RestResponse;
import com.wr.model.User;
import com.wr.service.PlateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/1118:10
 */
@RestController
public class PlateController {


    @Autowired
    private PlateService plateService;

    @RequestMapping("plate/list")
    public RestResponse<List<Plate>> list(@RequestBody Plate plate) {

        List<Plate> plates = plateService.list(plate);

        return RestResponse.success(plates);

    }
}
